package com.lfy.domain.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
@Data
public class FeedBackDTO {
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;
    @NotBlank(message = "反馈内容不能为空")
    @Length(max = 140, message = "反馈内容不能超过140个字")
    private String msg;
    @NotBlank(message = "url不能为空")
    private String url;

}
